package com.zhuangjie.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 订单商品评价表
 * </p>
 *
 * @author zhuangjie
 * @since 2023-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dish_rating")
@ApiModel(value="DishRating对象", description="订单商品评价表")
public class DishRating implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "编号")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "评论编号")
    @TableField("order_rating_id")
    private Long orderRatingId;

    @ApiModelProperty(value = "菜品表_商品id")
    @TableField("dish_id")
    private Long dishId;

    @ApiModelProperty(value = "表态（0踩，1赞）")
    @TableField("rating_type")
    private Integer ratingType;


}
